﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yugi.Client.Card;

namespace ServerYuGi.Helper
{
    public class FlagManager
    {
        Dictionary<string, object> DicFlag = new Dictionary<string, object>();
        public FlagManager()
        {
            DicFlag.Add("isChangeDamage", false);
            DicFlag.Add("DamAtt", null);
            DicFlag.Add("DefAtt", null);
            DicFlag.Add("DamDef", null);
            DicFlag.Add("DefDef", null);
        }
        public void SetValue(string key,object value)
        {            
            DicFlag[key] = value;
        }
        public T GetValue<T>(string key)
        {
            return (T)DicFlag[key];
        }
        
    }
}
